package com.yonyou.byb.rule;

import com.yonyou.byb.bs.OrgRuleCache;

public class RuleMapper {
	
	public static IRuleProcessor getProcessor(String orgcode) {
		Boolean isPuhuo = OrgRuleCache.getInstance().getOrgRule(orgcode);
		
		if(isPuhuo) {
			return new PuhuoRuleProcessor();
		} else {
			return new TransactionRuleProcessor();
		}
		
	}

}
